<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:c="http://www.w3.org/1999/XSL/Transform">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
    <div th:replace="common/IncludeTop">
    </div>

    <div id="Content">
        <div id="Catalog">
            <form action="/order/confirmOrder" method="post">
                <table>
                    <tr>
                        <th colspan=2>Payment Details</th>
                    </tr>
                    <tr>
                        <td>Card Type:</td>
                        <td>
                            <select name="cardType">
                                <option value="Visa">Visa</option>
                                <option value="MasterCard">MasterCard</option>
                                <option value="American Express">American Express</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>Card Number:</td>
                        <td><input type="text" name="creditCard" > * Use a fake number!</td>
                    </tr>
                    <tr>
                        <td>Expiry Date (MM/YYYY):</td>
                        <td><input th:type="text" th:name="expiryDate" th:value="${session.createDate}"></td>
                    </tr>
                    <tr>
                        <th colspan=2>Billing Address</th>
                    </tr>

                    <tr>
                        <td>First name:</td>
                        <td><input th:type="text" th:name="billToFirstName" th:value="${session.account.firstName}"></td>
                    </tr>
                    <tr>
                        <td>Last name:</td>
                        <td><input th:type="text" th:name="billToLastName" th:value="${session.account.lastName}"></td>
                    </tr>
                    <tr>
                        <td>Address 1:</td>
                        <td><input th:type="text" th:name="billAddress1" th:size="40" th:value="${session.account.address1}"></td>
                    </tr>
                    <tr>
                        <td>Address 2:</td>
                        <td><input th:type="text" th:name="billAddress2" th:size="40" th:value="${session.account.address2}"></td>
                    </tr>
                    <tr>
                        <td>City:</td>
                        <td><input th:type="text" th:name="billCity" th:value="${session.account.city}"></td>
                    </tr>
                    <tr>
                        <td>State:</td>
                        <td><input th:type="text" th:name="billState" th:size="4" th:value="${session.account.state}"></td>
                    </tr>
                    <tr>
                        <td>Zip:</td>
                        <td><input th:type="text" th:name="billZip" th:size="10" th:value="${session.account.zip}"></td>
                    </tr>
                    <tr>
                        <td>Country:</td>
                        <td><input th:type="text" th:name="billCountry" th:size="15" th:value="${session.account.country}"></td>
                    </tr>
                    <tr>
                        <td colspan=2><input th:type="radio" th:name="shippingAddressRequired" th:value="${'Ship to different address..'}">Ship to different address..</td>
                    </tr>
                </table>
                <input type="submit" value="Continue">
            </form>
        </div>
    </div>

    <div th:replace="common/IncludeBottom">
    </div>
</body>
</html>